/* $Id:picture.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef PICTURE_H_
#define PICTURE_H_

#include <string>



void add_directory(std::string);
void add_images();

void set_team(int r, int g, int b);
void set_terrain(int type, int x, int y);
void set_add(int type, int x, int y, int dir);
void set_castle(int type, int x, int y);
void move_map(int dx, int dy);

/**
    select a picture of a unit
    \return
     -1 = unit not found
     -2 = action not found
     0 = ok
*/
int set_unit(
    int type, ///< Type of unit
    int action, ///< Action of the unit
    int x, ///< Position in x
    int y, ///< Position in y
    int d, ///< Direction
    int u ///< Percentage underway into direction
);

/**
    Draw a map including units on it, keep the background for future usage
*/
void paint();

#endif // PICTURE_H_
